import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/index.vue')
    },
    {
      path: '/first_login',
      name: 'first_login',
      component: () => import('../views/first_login.vue')
    },
    {
      path: '/resetpwd',
      name: 'resetpwd',
      component: () => import('../views/resetpwd.vue')
    },
    {
      path: '/findpwd',
      name: 'findpwd',
      component: () => import('../views/findpwd.vue')
    },
    {
      path: '/gesture',
      name: 'gesture',
      component: () => import('../views/gesture.vue')
    },
    {
      path: '/relogin',
      name: 'relogin',
      component: () => import('../views/relogin.vue')
    },
    {
      path: '/mine',
      name: 'mine',
      component: () => import('../views/mine.vue')
    },
    {
      path: '/showescort',
      name: 'showescort',
      component: () => import('../components/showescort.vue')
    },
    {
      path: '/companysevice',
      name: 'companysevice',
      component: () => import('../views/companysevice.vue')
    },
    {
      path: '/inhospital',
      name: 'inhospital',
      component: () => import('../views/inhospital.vue')
    },
    {
      path: '/tosearchHospital',
      name: 'tosearchHospital',
      component: () => import('../views/tosearchHospital.vue')
    },
    {
      path: '/daycompany',
      name: 'daycompany',
      component: () => import('../components/daycompany.vue')
    },
    {
      path: '/totalorder',
      name: 'totalorder',
      component: () => import('../views/totalOrder.vue')
    },
    {
      path: '/buymedicine',
      name: 'buymedicine',
      component: () => import('../components/buymedicine.vue')
    },
    {
      path: '/enjoyvipescort',
      name: 'enjoyvipescort',
      component: () => import('../components/enjoyVIPscort.vue')
    },
    {
      path: '/fullconsultation',
      name: 'fullconsultation',
      component: () => import('../components/fullconsultation.vue')
    },
    {
      path: '/exclusivecompany',
      name: 'exclusivecompany',
      component: () => import('../components/exclusivecompany.vue')
    },
    {
      path: '/professional',
      name: 'professional',
      component: () => import('../components/professionalescort.vue')
    },
    {
      path: '/managepatient',
      name: 'managepatient',
      component: () => import('../components/managePatient.vue')
    },
    {
      path: '/userinfo',
      name: 'userinfo',
      component: () => import('../components/userinfo.vue')
    },
    {
      path: '/changeuseravatar',
      name: 'changeuseravatar',
      component: () => import('../components/changeuserAvatar.vue')
    },
    {
      path: '/changeotherinfo',
      name: 'changeotherinfo',
      component: () => import('../components/changeotherinfo.vue')
    },
    {
      path: '/toeditpwd',
      name: 'toeditpwd',
      component: () => import('../components/toeditpwd.vue'),
    },
    {
      path: '/setupcenter',
      name: 'setupcenter',
      component: () => import('../components/setupcenter.vue')
    },
    {
      path: '/evaluateorder',
      name: 'evaluateorder',
      component: () => import('../views/evaluateOrder.vue')
    },
  ],
})

export default router
